package com.woniu.common.constant;

import lombok.Data;
import lombok.Getter;

/**
 * 订单状态
 */
@Getter
public enum OrderStatusConstant {
    /**
     * 订单状态
     */
    WAIT_PAY(101, "待支付"),
    WAIT_SEND(108, "待发货"),
    WAIT_RECEIVE(109, "待收货"),
    WAIT_EVALUATE(3, "待评价"),
    FINISH(4, "已完成"),
    CANCEL(5, "已取消"),
    REFUND(6, "已退款"),
    REFUND_FAIL(7, "退款失败"),
    REFUND_SUCCESS(8, "退款成功");

    /**
     * 状态码
     */
    private final Integer code;
    private final String desc;

    OrderStatusConstant(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
